package user;

import Operation.IOperation;
import book.BookList;

//普通用户和管理员都将继承User
public abstract class User {
    protected String name;
    protected IOperation[] IOperations;
    public User(String name){

        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
       // this.ioPerations[choice].work(bookList);
        IOperation ioPeration = this.IOperations[choice];
        ioPeration.work(bookList);
    }
}
